module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'module-resolver',
      {
        root: ['./src'],
        alias: {
          '@/utils': './src/utils',
          '@/store': './src/store',
          '@/router': './src/router',
          '@/views': './src/views',
          '@/components': './src/components',
          '@/common': './src/common',
          '@/assets': './src/assets',
          '@/api': './src/api',
          '@/config': './src/config',
          '@/models': './src/models',
        },
        extensions: ['.ts', '.tsx', '.js', '.ios.js', '.android.js'],
      },
    ],
  ],
};
